/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objetosNegocio;

import java.util.List;

/**
 *
 * @author QUINTERO
 */
public class Subscriber extends User{
    
    private String company;
    private List<Location> locations;

    public Subscriber() {
    }

    public Subscriber(int id) {
        super(id);
    }

    public Subscriber(int id, String firstName, String secondName, String email, String address, String cityHall, City city, String phone, String type, int status) {
        super(id, firstName, secondName, email, address, cityHall, city, phone, type, status);
    }

    public Subscriber(int id, String firstName, String secondName, String email, String address, String cityHall, City city, String phone, String type, int status, String company, List<Location> locations) {
        super(id, firstName, secondName, email, address, cityHall, city, phone, type, status);
        this.company = company;
        this.locations = locations;
    }

    public Subscriber(String company, List<Location> locations, int id) {
        super(id);
        this.company = company;
        this.locations = locations;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public List<Location> getLocations() {
        return locations;
    }

    public void setLocations(List<Location> locations) {
        this.locations = locations;
    }

    @Override
    public String toString() {
        return "Subscriber{" + super.toString() + "company=" + company + ", locations=" + locations + '}';
    }
    
    
}
